import 'package:oramemo/generated/json/base/json_convert_content.dart';
import 'package:oramemo/entity/custom_adjustemt_entity.dart';

CustomAdjustemtEntity $CustomAdjustemtEntityFromJson(
    Map<String, dynamic> json) {
  final CustomAdjustemtEntity customAdjustemtEntity = CustomAdjustemtEntity();
  final CustomAdjustemtEarl? earl = jsonConvert.convert<CustomAdjustemtEarl>(
      json['earl']);
  if (earl != null) {
    customAdjustemtEntity.earl = earl;
  }
  final CustomAdjustemtEarl? earr = jsonConvert.convert<CustomAdjustemtEarl>(
      json['earr']);
  if (earr != null) {
    customAdjustemtEntity.earr = earr;
  }
  return customAdjustemtEntity;
}

Map<String, dynamic> $CustomAdjustemtEntityToJson(
    CustomAdjustemtEntity entity) {
  final Map<String, dynamic> data = <String, dynamic>{};
  data['earl'] = entity.earl?.toJson();
  data['earr'] = entity.earr?.toJson();
  return data;
}

extension CustomAdjustemtEntityExtension on CustomAdjustemtEntity {
  CustomAdjustemtEntity copyWith({
    CustomAdjustemtEarl? earl,
    CustomAdjustemtEarl? earr,
  }) {
    return CustomAdjustemtEntity()
      ..earl = earl ?? this.earl
      ..earr = earr ?? this.earr;
  }
}

CustomAdjustemtEarl $CustomAdjustemtEarlFromJson(Map<String, dynamic> json) {
  final CustomAdjustemtEarl customAdjustemtEarl = CustomAdjustemtEarl();
  final int? f250 = jsonConvert.convert<int>(json['f250']);
  if (f250 != null) {
    customAdjustemtEarl.f250 = f250;
  }
  final int? f500 = jsonConvert.convert<int>(json['f500']);
  if (f500 != null) {
    customAdjustemtEarl.f500 = f500;
  }
  final int? f1k = jsonConvert.convert<int>(json['f1k']);
  if (f1k != null) {
    customAdjustemtEarl.f1k = f1k;
  }
  final int? f2k = jsonConvert.convert<int>(json['f2k']);
  if (f2k != null) {
    customAdjustemtEarl.f2k = f2k;
  }
  final int? f3k = jsonConvert.convert<int>(json['f3k']);
  if (f3k != null) {
    customAdjustemtEarl.f3k = f3k;
  }
  final int? f4k = jsonConvert.convert<int>(json['f4k']);
  if (f4k != null) {
    customAdjustemtEarl.f4k = f4k;
  }
  final int? f6k = jsonConvert.convert<int>(json['f6k']);
  if (f6k != null) {
    customAdjustemtEarl.f6k = f6k;
  }
  return customAdjustemtEarl;
}

Map<String, dynamic> $CustomAdjustemtEarlToJson(CustomAdjustemtEarl entity) {
  final Map<String, dynamic> data = <String, dynamic>{};
  data['f250'] = entity.f250;
  data['f500'] = entity.f500;
  data['f1k'] = entity.f1k;
  data['f2k'] = entity.f2k;
  data['f3k'] = entity.f3k;
  data['f4k'] = entity.f4k;
  data['f6k'] = entity.f6k;
  return data;
}

extension CustomAdjustemtEarlExtension on CustomAdjustemtEarl {
  CustomAdjustemtEarl copyWith({
    int? f250,
    int? f500,
    int? f1k,
    int? f2k,
    int? f3k,
    int? f4k,
    int? f6k,
  }) {
    return CustomAdjustemtEarl()
      ..f250 = f250 ?? this.f250
      ..f500 = f500 ?? this.f500
      ..f1k = f1k ?? this.f1k
      ..f2k = f2k ?? this.f2k
      ..f3k = f3k ?? this.f3k
      ..f4k = f4k ?? this.f4k
      ..f6k = f6k ?? this.f6k;
  }
}